#include "precompiled.h"
#include "prs_AttrTest.h"
using namespace prs_AttrTest;

// TNodeTest //////////////////////////////////////////////////////////////////

const char *TNodeTest::attrName_Receiver = "Receiver";
const char *TNodeTest::attrName_Value = "Value";

const char *TMessageTest::attrName_Sender = "Sender";
const char *TMessageTest::attrName_OldVal = "OldVal";
const char *TMessageTest::attrName_NewVal = "NewVal";

//
void prs_AttrTest::Test()
{
  TNodeTest Node1,Node2;
  svl::TString S1,S2;

  TReceiver1 Receiver1;
  Node1.Receiver = &Receiver1;
  TReceiver2 Receiver2;
  Node2.Receiver = &Receiver2;
  
  Node1.Value = "123";
  Node2 = Node1;
  Node1.Value = "456";

  //S1 = Node1.Value;
  //S2 = Node2.Value;

  TNodeRoot Root;
    //Root.OldChildren.Array.Add(&Node1,false);
    //Root.OldChildren.Array.Add(&Node2,false);

  //Root.Accept(TVisitorTest());

  svl::TWindow MainWin;

  ////////////////////////////////////////////////////
  svl::TMessageModal(svl::TString("TAttrNode::Test()") 
    << "\r\n"  << Root.GetInfoAsString()
  );
}
